import request from '../utils/request';
import { remoteAddress } from './ip';

export async function addProfession(params) {
  return request(remoteAddress('/basic/profession/add'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function deleteProfession(params) {
  return request(remoteAddress('/basic/profession/delete'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function updateProfession(params) {
  return request(remoteAddress('/basic/profession/update'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function queryProfession(params) {
  return request(remoteAddress('/basic/profession/listall'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
